package com.xbongbong.paas.pojo.dto;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: wufeng
 * @date: 2018/8/14 14:17
 * @desrcption: 协同人权限
 */
@Getter
@Setter
@ToString
public class CoOpPermsAddDTO implements Serializable {

    private static final long serialVersionUID = -6403045589557009212L;

    /**
     * 查看
     */
    @NotNull(message = "{dto.msg.coOpPermsAdd.read.NotNull}")
    private Integer read;

    /**
     * 导出
     */
    @NotNull(message = "{dto.msg.coOpPermsAdd.export.NotNull}")
    private Integer export;

    /**
     * 更新
     */
    @NotNull(message = "{dto.msg.coOpPermsAdd.update.NotNull}")
    private Integer update;

    /**
     * 删除
     */
    @NotNull(message = "{dto.msg.coOpPermsAdd.delete.NotNull}")
    private Integer delete;

    /**
     * 打印
     */
    @NotNull(message = "{dto.msg.coOpPermsAdd.print.NotNull}")
    private Integer print;

    public CoOpPermsAddDTO(){
        read = 1;
        export = 0;
        update = 0;
        delete = 0;
        print = 0;
    }

}
